import clr
import System
import sys
clr.AddReference('System.ServiceModel')
from System.ServiceModel import ServiceHost, NetTcpBinding
clr.AddReference('WcfServer.dll')
import Python

host = ServiceHost(Python.Wcf.WcfServer)
host.AddServiceEndpoint(Python.Wcf.WcfServer, NetTcpBinding(), 'net.tcp://localhost:8888/MyService')
host.Open()

print 'Press Enter to exit'
sys.stdin.readline()
